gdk: Compress scroll events
authorMatthias Clasen <mclasen@redhat.com>
Mon, 8 Jun 2020 22:07:40 +0000 (18:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 9 Jun 2020 17:43:03 +0000 (13:43 -0400)
commit86eece78b16e40dec6aca5a3b20d9e6eb648ad3c
treead885b87b2f37b31f898c0f02e2bdaea5c93fa90
parent8cb50ac6e9c6a78f337e4ad2bb61aa0558844904
gdk: Compress scroll events

Only return one accumulated scroll event per frame.
Compress them by adding up the deltas.

Still missing: a way to capture history, like
we do for motion events.

Fixes: #2800
gdk/gdkevents.c
gdk/gdkinternals.h
gdk/gdksurface.c